﻿// Original author contact info: Owen Emlen (owene_1998@yahoo.com)
// Note: other individuals may also have contributed to this code
// Project hosted on CodePlex.com as of 1/10/2009 at http://www.codeplex.com/EmlenMud
using System.Runtime.Serialization;
using System;
using System.ComponentModel;

namespace BrainTechLLC
{
    /// <summary>
    /// Describes a type loaded from an assembly - the source DLL, the class type, and info about implemented interfaces
    /// </summary>    
#if NO_SILVERLIGHT
    [Browsable(true)]
    [TypeConverter(typeof(ExpandableObjectConverter))]
#endif
    [Serializable]
    public class TypeDescription : ITypeDescription
    {
        public string SourceDLL { get; set; }

        public Type ClassType { get; set; }

        public TypeDescription() { }
        public TypeDescription(string sourceDLL, Type classType)
        {
            SourceDLL = sourceDLL;
            ClassType = classType;
        }
    }
}
